package ro.myApp.security.client;

import java.util.List;

import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.intercept.BypassInterceptors;

import ro.myApp.client.BaseView;
import ro.myApp.security.dto.UserFindAllFiltered;
import ro.myApp.security.entities.User;


@Name("users")
@BypassInterceptors
@Scope(ScopeType.PAGE)
public class Users  extends BaseView {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4981365263174471078L;

	private List<User> usersList;
	
	public List<User> getUsersList (){
		if (null==usersList){
			usersList = sendMessage(new UserFindAllFiltered());
		}
		return usersList;
	}
	
	
}
